/*
 * @Author: zhangzhen
 * @Date: 2022-08-12 09:09:51
 * @LastEditors: zhangzhen
 * @LastEditTime: 2022-09-13 15:14:51
 *
 */
export const setLocalStorage = (name: string, value: any) => {
  window.localStorage.setItem(name, JSON.stringify(value))
}

export const getLocalStorage = (name: string) => {
  return window.localStorage.getItem(name) || ''
}

export const setSessionStorage = (name: string, value: any) => {
  window.sessionStorage.setItem(name, value)
}

export const getSessionStorage = (name: string) => {
  return window.sessionStorage.getItem(name) || ''
}
